import { request } from '../utils/request';
import type { GetMessageParams, PushData } from "../../typings/types/monitor/index"
// 获取监控消息列表
export const getMessagePageAPI = (data: GetMessageParams) => {
  return request({
    url: '/monitor/getMessagePage',
    method: 'POST',
    data
  });
};
/** 查询推送设置 */
export function getPushSettingApi() {
  return request({
    url: "/monitor/getPushSetting",
    method: "get"
  })
}
/** 保存推送设置 */
export function savePushSettingApi(data: PushData) {
  return request({
    url: "/monitor/savePushSetting",
    method: "post",
    data
  })
}
/** 获取微信公众号关注二维码 */
export function getWxQRCodeApi() {
  return request({
    url: "/getWxQRCode",
    method: "get"
  })
}
/** 查询推送设置 */
export function getMonitorCompanyCountApi() {
  return request({
    url: "/monitor/getMonitorCompanyCount",
    method: "get"
  })
}